package com.justgame.project.cloud.common.constant;

import org.apache.shiro.authc.AuthenticationToken;


/**
 * 身份Token获取
 */
public class Auth2Token implements AuthenticationToken {
    private final String token;


    public Auth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
